<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('定时任务详细')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">

        <form class="form-horizontal m-t">
            <div class="form-group">
                <label class="col-sm-3 control-label">楼栋：</label>
                <div class="form-control-static" th:text="${sysTenant.buildingName}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">单元：</label>
                <div class="form-control-static" th:text="${sysTenant.unitNameStr}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">租户名称：</label>
                <div class="form-control-static" th:text="${sysTenant.tenantName}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">租户面积：</label>
                <div class="form-control-static" th:text="${sysTenant.tenantArea}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">合同起租时间：</label>
                <div class="form-control-static" th:text="${#dates.format(sysTenant.startTime, 'yyyy-MM-dd')}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">合同到期时间：</label>
                <div class="form-control-static" th:text="${#dates.format(sysTenant.endTime, 'yyyy-MM-dd')}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">租金起算日：</label>
                <div class="form-control-static" th:text="${#dates.format(sysTenant.rentStartDay, 'yyyy-MM-dd')}">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">涨租时间：</label>
                <div class="form-control-static" th:text="${sysTenant.risePriceFirstTime==null}?'无':${#dates.format(sysTenant.risePriceFirstTime, 'yyyy-MM-dd')}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">涨租比率：</label>
                <div class="form-control-static" th:text="${sysTenant.risePriceRatio}+'%'">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">押金：</label>
                <div class="form-control-static" th:text="${sysTenant.pledgeFee==null}?'0':${sysTenant.pledgeFee}">

                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">装修押金：</label>
                    <div class="form-control-static" th:text="${sysTenant.decorationPledgeFee==null}?'0':${sysTenant.decorationPledgeFee}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">租金：</label>
                    <div class="form-control-static" th:text="${sysTenant.monthlyRentFee==null}?'0':${sysTenant.monthlyRentFee}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">物业费：</label>
                    <div class="form-control-static" th:text="${sysTenant.propertyFee==null}?'0':${sysTenant.propertyFee}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">清理垃圾费：</label>
                    <div class="form-control-static" th:text="${sysTenant.scavengingFee==null}?'0':${sysTenant.scavengingFee}">
                    </div>
                </div>
                <div class="form-group" id="leaveTime">
                    <label class="col-sm-3 control-label">离租时间：</label>
                    <div class="form-control-static" th:text="${#dates.format(sysTenant.leaveTime, 'yyyy-MM-dd')}">
                    </div>
                </div>
                <div class="form-group" id="remark">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="form-control-static" th:text="${sysTenant.remark}">
                    </div>
                </div>

                <input type="hidden" id="tenantStatus" th:value="${sysTenant.tenantStatus}">
            </div>
        </form>
    </div>

    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        $(document).ready(function() {
            var tenantStatus = $("#tenantStatus").val();
            if(tenantStatus!=null){
                if(tenantStatus == '0'){
                    $("#leaveTime").css('display','none');
                    $("#remark").css('display','none');
                }
                if(tenantStatus == '2'){
                    $("#remark").css('display','none');
                }
            }
        })

    </script>
</body>
</html>